<?php
class societeComponents extends sfComponents
{

  /**
   * List stage for a given firm
   *
   */
  public function executeSocietestages()
  {
    $societe_id = $this->getRequestParameter('id');
    if (!is_null($societe_id))
    {
      $c = new Criteria();
      $c->add(StagePeer::SOCIETE_ID, $societe_id);
      $this->stages = StagePeer::doSelect($c);
    }
  }

}
